//
//  UIViewControllerExtension.swift
//  Trill
//
//  Created by 顾钱想 on 2019/11/10.
//  Copyright © 2019 顾钱想. All rights reserved.
//

import Foundation

public extension UIViewController {

    func startAnimating() {
        DispatchQueue.main.async {
            HUDManager.shared.hud = HUD.showLoading()
        }
    }

    func stopAnimating() {
        DispatchQueue.main.async {
            HUDManager.shared.hud?.hide(animated: true)
        }
    }
}


